import cache from '@/utils/cache'
import constant from '@/utils/constant'

// 文件导出
export const useLogLoginExportApi = () => {
	location.href = constant.apiUrl + '/sys/log/login/export?access_token=' + cache.getToken()
}



export const logApiList = (name: string) => {
	if(name=='login'){
		return '/sys/log/login/list';
	}else if(name=='operation'){
		return '/sys/log/operation/list';
	}
	return "";
}
